﻿using System;
using System.Collections.Generic;

namespace Harvest.Api.Interfaces
{
    
    public interface IRepository
    {

        T GetById<T>(int id);


        List<T> GetAll<T>(DateTime? updatedSince = null);


        T Add<T>(T entity);


        void Remove(int id);


        void Remove<T>(T entity);


        T Update<T>(T entity);

    }

}
